package com.matt.service.cookbook;

import com.matt.domain.cookbook.RecipeShow;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface RecipeShowService {

	void deleteRecipeShowByTimeAndAreaId(String recipeDate, String areaId);
	/**
	 * 根据条件查询食谱
	 * @param  filter 中的参数如下
	 * @param schoolId 
	 * @param startTime
	 * @param endTime
	 * @param publishFlag '是否发布标识 0-未发布，1-已发布'
	 * @return
	 */
	
	List<RecipeShow> selectRecipeListByCondition(Map<String, Object> filter);

	RecipeShow selectRecipeShowByTimeAndSchoolId(String recipeDate, String areaId);

	RecipeShow createRecipeShow(String areaId, Date date, String json);

	String createRecipeShowJson(String recipeDate, String areaId);

	String createRecipeShowJson(List<Map<String, Object>> recipeTypeIdMapList, String areaId, String recipeDate);
}